import service from '@/utils/request'

export const useGenCodeIssueApi = (id: number) => {
	return service.get('/gen/gen_code_issue/' + id)
}

export const useGenCodeIssueListApi = () => {
	return service.get('/gen/gen_code_issue/list')
}

export const useGenCodeIssueSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/gen/gen_code_issue', dataForm)
	} else {
		return service.post('/gen/gen_code_issue', dataForm)
	}
}